
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import java.awt.Color;
import java.awt.Font;


public class Map extends JFrame {

    private static String image;
    /**
     *
     */
    private static final JLabel J_LABEL = new JLabel(image);
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private Wire Map;

    /**
     * Launch the application.
     */
    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
            public void run() {
                try {
                    Map frame = new Map();
                    frame.setVisible(true);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }

    /**
     * Create the frame.
     */
    public Map() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setBounds(100, 100, 876, 604);
        Map = new Wire();
        Map.setBorder(new EmptyBorder(5, 5, 5, 5));
        setContentPane(Map);
        Map.setLayout(null);

        JLabel label = new JLabel("武汉");
        label.setFont(new Font("黑体", Font.BOLD, 23));
        label.setForeground(Color.RED);
        label.setHorizontalAlignment(SwingConstants.CENTER);
        label.setBounds(380, 10, 54, 34);
        Map.add(label);

        JLabel lblNewLabel = J_LABEL;
        lblNewLabel.setForeground(Color.RED);
        lblNewLabel.setFont(new Font("黑体", Font.BOLD, 23));
        lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
        lblNewLabel.setBounds(15, 407, 90, 42);
        Map.add(lblNewLabel);

        JLabel label_1 = new JLabel("咸宁");
        label_1.setForeground(Color.RED);
        label_1.setFont(new Font("黑体", Font.BOLD, 23));
        label_1.setHorizontalAlignment(SwingConstants.CENTER);
        label_1.setBounds(140, 100, 76, 34);
        Map.add(label_1);

        JLabel label_2 = new JLabel("福建");
        label_2.setForeground(Color.RED);
        label_2.setFont(new Font("黑体", Font.BOLD, 23));
        label_2.setHorizontalAlignment(SwingConstants.CENTER);
        label_2.setBounds(135, 355, 76, 34);
        Map.add(label_2);

        JLabel label_3 = new JLabel("麻城");
        label_3.setFont(new Font("黑体", Font.BOLD, 23));
        label_3.setForeground(Color.RED);
        label_3.setHorizontalAlignment(SwingConstants.CENTER);
        label_3.setBounds(340, 370, 76, 34);
        Map.add(label_3);

        JLabel label_4 = new JLabel("黄梅");
        label_4.setFont(new Font("黑体", Font.BOLD, 23));
        label_4.setForeground(Color.RED);
        label_4.setHorizontalAlignment(SwingConstants.CENTER);
        label_4.setBounds(580, 100, 76, 34);
        Map.add(label_4);
        // 武汉到咸宁
        JLabel label_5 = new JLabel("50m");
        label_5.setBounds(280, 70,400, 40);
        Map.add(label_5);
        // 咸宁到福建
        JLabel label_6 = new JLabel("100m");
        label_6.setBounds(200, 80,200, 360);
        Map.add(label_6);
        //武汉到黄梅  
        JLabel label_7 = new JLabel("40m");
        label_7.setBounds(400, 30,400, 200);
        Map.add(label_7);
        // 咸宁到黄梅
        JLabel label_8 = new JLabel("55m");
        label_8.setHorizontalAlignment(SwingConstants.CENTER);
        label_8.setBounds(100, 75,400, 200);
        Map.add(label_8);
// 福建到麻城
        JLabel label_9 = new JLabel("20m");
        label_9.setHorizontalAlignment(SwingConstants.CENTER);
        label_9.setBounds(150, 190,300, 360);
        Map.add(label_9);

        JLabel label_10 = new JLabel("40m");
        label_10.setHorizontalAlignment(SwingConstants.CENTER);
        label_10.setBounds(215, 100,400, 360);
        Map.add(label_10);

        JLabel label_11 = new JLabel("60m");
        label_11.setHorizontalAlignment(SwingConstants.CENTER);
        label_11.setBounds(400, 200,200,40);
        Map.add(label_11);

        JLabel label_12 = new JLabel("30m");
        label_12.setHorizontalAlignment(SwingConstants.CENTER);
        label_12.setBounds(400, 350,200,40);
        Map.add(label_12);

        JLabel label_13 = new JLabel("20m");
        label_13.setHorizontalAlignment(SwingConstants.CENTER);
        label_13.setBounds(415, 300,400,40);
        Map.add(label_13);

        JLabel label_14 = new JLabel("荆州");
        label_14.setFont(new Font("黑体", Font.BOLD, 23));
        label_14.setForeground(Color.RED);
        label_14.setHorizontalAlignment(SwingConstants.CENTER);
        label_14.setBounds(580, 250, 76, 34);
        Map.add(label_14);

        



    }

}
